package simple;

import org.junit.Test;

import java.util.Arrays;
import java.util.List;

/**
 * ToArray..
 *
 * @author Lizhong
 * @date 2019/6/6
 */
public class ToArray {
    @Test
    public void method01(){
        List<String> strings = Arrays.asList("1", "2", "3");
        String[] s = strings.toArray(new String[0]);
        System.out.println(s.length);
    }
}
